package com.mtnz.njk.Mapper;

import com.mtnz.njk.entity.CommentResearchEntity;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/**
* @Description:    帖子回复图
* @Author:         ZPX
* @CreateDate:     2019/7/17 18:48
* @Version:        1.0
*/
@org.apache.ibatis.annotations.Mapper
public interface CommentResearchMapper extends Mapper<CommentResearchEntity> {
    //  展示帖子下的回复头像（最多5条）
    List<String> replyComment(@Param("researchId") Integer researchId);

    // 根据userId查询comment_research表最近的date
    String findCommentResearchByUserid(String userId);

    Integer findByCreateDate(String researchId);

    CommentResearchEntity showCreateDate(String researchId);
}
